package lium.lbs.lbsim.base;

import android.text.TextUtils;
import com.lmlibrary.Constants;
import lium.lbs.lbsim.utils.SpUtils;

import java.util.HashMap;

/**
 * 所有接口 都会用到参数的基类
 * Created by JonZone on 2017/03/10.
 */

public class BaseParamMap extends HashMap<String,String> {
    public BaseParamMap() {
        this.put("timestamp", String.valueOf(System.currentTimeMillis()));
        if (SpUtils.getInstance().contains(Constants.memberId)){
            String memberId = (String) SpUtils.getInstance().get(Constants.memberId, "");
            if (!TextUtils.isEmpty(memberId)){
                this.put("memberId", memberId+"");
            }
        }
    }
}
